import {Sprite} from "../base/Sprite.js";
import {DataStore} from "../base/DataStore.js";

export class StartButton extends Sprite {
    constructor() {
        const image = DataStore.getInstance().resLoaded.get('startButton');
        super(
            image,
            0, 0,
            image.width, image.height,
            (DataStore.getInstance().canvas.width-image.width)/2,
            (DataStore.getInstance().canvas.height-image.height)/2.5,
            // 155,155,
            image.width,image.height
        );
    }
}